package com.juku2024.juku.db.dao;


import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

import com.juku2024.juku.db.entity.HomeModel;


@Dao
public interface HomeTabDao {

    @Query("SELECT * FROM homeTab")
    HomeModel query();

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insert(HomeModel login);

    @Update(onConflict = OnConflictStrategy.REPLACE)
    int update(HomeModel login);

    @Query("DELETE FROM homeTab")
    void delete();

}
